function [] = testImage(img, segs)
% Tests the lane detector.
% Input:
% img - the input image
% segs - y-coordinates of image segment boundaries.

% Preprocess image.
img = double(img);
if ndims(img) > 2
    img = (img(:,:,1) + img(:,:,2) + img(:,:,3))/3;
end
img = img/255;

hold on;
imshow(img);
% plot segments here
hold off;
end